-- GENERATED SPELL FOR [Ymirjar Warrior] --


function spell0_26690(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(48639,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26690', 5282, 1)
end

function spell1_26690(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(48640,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26690', 594, 1)
end

function Sorts_26690(pUnit, Event)
local choix_sorts_26690 = math.random(0, 1)
if choix_sorts_26690 == 0 then
pUnit:RegisterEvent('spell0_26690', 1, 1)
end
if choix_sorts_26690 == 1 then
pUnit:RegisterEvent('spell1_26690', 1, 1)
end
end

function mob26690_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26690', math.random(1500, 3000), 1)
end

function mob26690_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26690_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26690_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26690, 1, 'mob26690_Action')
RegisterUnitEvent(26690, 2, 'mob26690_Leave')
RegisterUnitEvent(26690, 3, 'mob26690_Kill')
RegisterUnitEvent(26690, 4, 'mob26690_Die')
